package com.troila.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(
        prefix = "config"
)
@Data
public class RpcConfig {

    private final RpcClientProperties client = new RpcClientProperties();

    @Data
    public static class RpcClientProperties {

        private String serverHost;

        private int serverPort = 2029;

    }

}
